package com.zhijian.warehouse.manage.dao;

import com.zhijian.warehouse.manage.entity.po.StoreOutRecordProduct;
import com.zhijian.warehouse.manage.entity.vo.request.StoreOutRecordProductSearchVo;
import com.zhijian.warehouse.manage.entity.vo.response.StoreOutRecordProductVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface StoreOutRecordProductMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StoreOutRecordProduct record);

    int insertSelective(StoreOutRecordProduct record);

    StoreOutRecordProduct selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StoreOutRecordProduct record);

    int updateByPrimaryKey(StoreOutRecordProduct record);

    /**
     * 查询总数
     *
     * @param storeOutRecordProductSearchVo
     * @return
     */
    int count(StoreOutRecordProductSearchVo storeOutRecordProductSearchVo);

    /**
     * 查询列表
     *
     * @param storeOutRecordProductSearchVo
     * @return
     */
    List<StoreOutRecordProductVo> selectList(StoreOutRecordProductSearchVo storeOutRecordProductSearchVo);

    /**
     * 查询单个
     *
     * @param storeOutRecordProductSearchVo
     * @return
     */
    StoreOutRecordProductVo selectOne(StoreOutRecordProductSearchVo storeOutRecordProductSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    StoreOutRecordProductVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param storeOutRecordProductSearchVo
     * @return
     */
    void deleteByCondition(StoreOutRecordProductSearchVo storeOutRecordProductSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<StoreOutRecordProduct> entities);

    /**
     * 根据StoreOutRecordId查询列表
     *
     * @param storeOutRecordId
     * @return
     */
    List<StoreOutRecordProductVo> selectListByStoreOutRecordId(Long storeOutRecordId);

    /**
     * 根据ProductId查询列表
     *
     * @param productId
     * @return
     */
    List<StoreOutRecordProductVo> selectListByProductId(Long productId);

    /**
     * 根据WarehouseId查询列表
     *
     * @param warehouseId
     * @return
     */
    List<StoreOutRecordProductVo> selectListByWarehouseId(Long warehouseId);

    /**
     * 根据WarehouseLocationId查询列表
     *
     * @param warehouseLocationId
     * @return
     */
    List<StoreOutRecordProductVo> selectListByWarehouseLocationId(Long warehouseLocationId);
}